Access -> ODBC -> postgres
am 21.04.2006 15:22:37 von Eliott------=_Part_12744_17456973.1145625757749
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi!
I am trying to create a front-end to an existing postgres database in MS
Access 2002 using 8.01.20 Unicode ODBC driver. Some of the simpler queries
were working, but as soon as I try to use a dynamic parameter, the query
sent to the server gets syntactically incorrect. I have attached some logs
to make it clear:
hdbc=3D151272720, stmt=3D151283976, result=3D151=
266488
manual_result=3D1, prepare=3D0, internal=3D0
bindings=3D0, bindings_allocated=3D0
parameters=3D151288880, parameters_allocated=3D1
statement_type=3D0, statement=3D'SELECT
"public"."organization_user"."id","public"."bidding_auction" ."id","public".=
"organization_company"."id"
FROM
"public"."bidding_auction","public"."organization_user","pub lic"."organizat=
ion_company"
WHERE (("public"."organization_user"."id" =3D
"public"."bidding_auction"."organizer_id" ) AND
(("public"."organization_user"."company_id" =3D
"public"."organization_company"."id" ) AND
("public"."organization_company"."id" =3D ? ) ) ) '
stmt_with_params=3D'SELECT
"public"."organization_user"."id","public"."bidding_auction" ."id","public".=
"organization_company"."id"
FROM
"public"."bidding_auction","public"."organization_user","pub lic"."organizat=
ion_company"
WHERE (("public"."organization_user"."id" =3D
"public"."bidding_auction"."organizer_id" ) AND
(("public"."organization_user"."company_id" =3D
"public"."organization_company"."id" ) AND
("public"."organization_company"."id" =3D 38'
data_at_exec=3D-1, current_exec_param=3D-1, put_data=3D0
currTuple=3D-1, current_col=3D-1, lobj_fd=3D-1
maxRows=3D0, rowset_size=3D1, keyset_size=3D0, cursor_type=
=3D0,
scroll_concurrency=3D1
cursor_name=3D'SQL_CUR09046908'
----------------QResult Info
-------------------------------
fields=3D151266624, manual_tuples=3D0, backend_tuples=3D0,
tupleField=3D0, conn=3D0
fetch_count=3D0, num_total_rows=3D0, num_fields=3D0,
cursor=3D'(NULL)'
message=3D'(NULL)', command=3D'(NULL)', notice=3D'(NULL)'
status=3D7, inTuples=3D0
CONN ERROR: func=3DSC_execute, desc=3D'', errnum=3D108, sqlstate=3D42601,
errmsg=3D'ERROR: syntax error at end of input at character 396'
My settings are as follows: Disable generic optimizer on, KSQO, Parse
statements on (I experimented with toggling these with no difference)
As you can see, the stmt_with_params is missing three ')'-s from the end.
Can anybody tell me what causes this behaviour and how can I get rid of it?
Regards
Eliott
------=_Part_12744_17456973.1145625757749
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi!
I am trying to create a front-end to an existing postgres databa=
se in MS Access 2002 using 8.01.20 Unicode ODBC driver. Some of the simpler=
queries were working, but as soon as I try to use a dynamic parameter, the=
query sent to the server gets syntactically incorrect. I have attached som=
e logs to make it clear:
&nbs=
p; &=
nbsp; hdbc=3D151272720, stmt=3D151283976, result=3D151266488
 =
; &n=
bsp; manual_result=3D1, prepare=3D0, internal=3D0
&nbs=
p; &=
nbsp; bindings=3D0, bindings_allocated=3D0
 =
; paramet=
ers=3D151288880, parameters_allocated=3D1
 =
; statement_type=3D0, statement=3D'SELECT "pub=
lic"."organization_user"."id","public".&=
quot;bidding_auction"."id","public"."organiza=
tion_company"."id" FROM "public"."bidding_auc=
tion","public"."organization_user","public&qu=
ot;."organization_company" WHERE (("public"."organ=
ization_user"."id" =3D "public"."bidding_auct=
ion"."organizer_id" ) AND (("public"."organiz=
ation_user"."company_id" =3D "public"."organi=
zation_company"."id" ) AND ("public"."organiz=
ation_company"."id" =3D ? ) ) ) '
 =
; stmt_with_params=3D'SELECT "public".&qu=
ot;organization_user"."id","public"."bidding_=
auction"."id","public"."organization_company&=
quot;."id" FROM "public"."bidding_auction",&q=
uot;public"."organization_user","public"."org=
anization_company" WHERE (("public"."organization_user&=
quot;."id" =3D "public"."bidding_auction".&qu=
ot;organizer_id" ) AND (("public"."organization_user&qu=
ot;."company_id" =3D "public"."organization_compan=
y"."id" ) AND ("public"."organization_company=
"."id" =3D 38'
 =
; data_at_exec=3D-1, current_exec_param=3D-1, put_d=
ata=3D0
&nbs=
p; currTuple=3D-1, current_col=3D-1, lobj_fd=
=3D-1
=
maxRows=3D0, rowset_size=3D1, keyset_size=3D=
0, cursor_type=3D0, scroll_concurrency=3D1
 =
; cursor_name=3D'SQL_CUR09046908'
&n=
bsp;  =
; ----------------QResult Info -------------------------------
&nb=
sp; =
fields=3D151266624, manual_tuples=3D0, backend_tuples=3D=
0, tupleField=3D0, conn=3D0
 =
; fetch_count=3D0, num_total_rows=3D0, num_fields=
=3D0, cursor=3D'(NULL)'
=
message=3D'(NULL)', comman=
d=3D'(NULL)', notice=3D'(NULL)'
&nbs=
p; status=3D7, inTupl=
es=3D0
CONN ERROR: func=3DSC_execute, desc=3D'', errnum=3D108, sqlstate=
=3D42601, errmsg=3D'ERROR: syntax error at end of input at character =
396'=20
My settings are as follows: Disable generic optimizer on, KSQO, Par=
se statements on (I experimented with toggling these with no difference)
>
As you can see, the stmt_with_params is missing three ')'-s from=
the
end. Can anybody tell me what causes this behaviour and how can I get
rid of it?
Regards
Eliott
------=_Part_12744_17456973.1145625757749--